package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    EmployeeDTO addEmployee(EmployeeDTO employeeDTO);

    Employee selectEmployeeById(Long id);

    PageResult employeePageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 修改密码
     * @param passwordEditDTO
     * */
    Result editPassword(PasswordEditDTO passwordEditDTO);



    Result editEmployee(EmployeeDTO employeeDTO);

    void updateStatus(Integer status,Long id);

}
